package com.maltys.abstract_demo;


public class Staff extends Employee {
    public Staff(Integer id, String name, Double salary) {
        super(id, name, salary);
    }

    @Override
    public void work() {
        String format = String.format("员工%s工作中", getName());
        System.out.println(format);
    }
}
